<template>
    <!-- 显示注册与否的老师表-->
    <div id="TeacherBox">
        <table class="table">
            <table border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <th>课题</th>
                    <th>团队</th>
                    <th>评价</th>
                    <th>分数</th>
                </tr>
                <!-- <tr v-for="(item, index) in tData" align="center" @click="changeInfo(item)">
                    <td>{{ item.courseName }}</td>
                    <td>{{ item.team }}</td>
                    <td>{{ item.comment }}</td>
                    <td>{{ item.score }}</td>
                </tr> -->
            </table>
        </table>

    </div>
    <div class="pagination">
        <Pagination ref="pageData" @changePage="changePage" />
    </div>
</template>
<script setup>
import { getUserData, exportTable } from '../utils';
import { getCurrentInstance, ref } from 'vue';
import Pagination from './Pagination.vue';

const http = getCurrentInstance()?.appContext.config.globalProperties.$http

// 获得用户信息
// 获得用户信息
let userData = {
    Token: '',
    avatar: '',
    id: '',
    role: ''
}
if (getUserData() != undefined) {
    userData = getUserData();
}
const pageData = ref()

//放到表格的数据
const tData = ref()

const changePage = function (pd) {

}

</script>
<style scoped>
.table {
    width: 100%;
    border-collapse: collapse;
    border: solid 1px #bfbfbf;
}

.table table {
    width: 100%;
    font-family: Source Han Sans CN;
    font-size: 18px;
    font-weight: normal;
    font-stretch: normal;
    line-height: 31px;
    letter-spacing: 0px;
    color: #707070;
}

.table th {
    border: solid 1px #bfbfbf;
    background-color: #e4e7ed;
    height: 53px;
}

.table td {
    border: solid 1px #bfbfbf;
    height: 53px;
    background-color: white;
}

.tip {
    position: absolute;
    top: 115%;
    z-index: 10;
    left: -10%;
}

.toolbar {
    width: 100%;
    height: 44px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 2%;
}

.but {
    width: 30%;
    display: flex;
    justify-content: space-between;
    margin-right: 2%;
}

.but button {
    width: 45%;
    height: 44px;
    background-color: #8493a6;
    box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.16);
    border-radius: 6px;
    border: 0px;
    color: #fafafa;
    font-size: 1.1em;
    font-family: Source Han Sans CN;
    font-weight: normal;
    font-stretch: normal;
    cursor: pointer;
    ;
}

.search {
    width: 40%;
    height: 44px;
}

.search input {
    width: 100%;
    height: 100%;
    border: 0px;
    padding-left: 4%;
    background-color: #fcfcfd;
    box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.16);
    border-radius: 6px;
    font-family: Source Han Sans CN;
    font-size: 1.1em;
    letter-spacing: 0px;
    color: #707070;
    outline: none;
    padding-right: 11%;
}

.search img {
    position: absolute;
    right: 1%;
    height: 100%;
    scale: 0.6;
    cursor: pointer;
}

#select {
    padding-right: 1.3%;
    display: flex;
    width: 32%;
    height: 100%;
    justify-content: space-between;
}

#select li {
    width: 46%;
    list-style: none;
    height: 44px;
}
.selectBox select {
    background-color: #ffffff;
    box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.16);
    border-radius: 6px;
    width: 100%;
    height: 44px;
    outline: none;
    border: 0px;
    color: #707070;
    padding-left: 13%;
    font-family: Source Han Sans CN;
    font-size: 16px;
    font-weight: normal;
    font-stretch: normal;
    line-height: 31px;
    letter-spacing: 0px;
    overflow: hidden;
    overflow: hidden;
    /* 第二步：让文本不会换行， 在同一行继续 */
    white-space: nowrap;
    /* 第三步：用省略号来代表未显示完的文本 */
    text-overflow: ellipsis;
    padding-right: 20%;
}

.selectBox select::-ms-expand {
    display: none;
}
.selectBox select {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    background: url(../assets/images/administrator/arrow-down-bold.svg) no-repeat 95% center;
    background-color: #fff;
    background-size: 10%;
}
.getFile {
    cursor: pointer;
}

.getFile:hover {
    border-bottom: 1px solid #707070;
}
</style>